
import constant from '../utils/constant'

export default () => ({
  // 获取map对象格式的常量
  getMapFormat: (key) => Object.keys(constant[key]).map(item => ({
    label: constant[key][item],
    value: item
  })),

  getMapLabel: (key, value) => constant[key][value]
})